import { axios } from '@/utils/request'

/**
 * 交易记录管理
 */

export function selectPage (parameter) {
  if (parameter.beginTime != undefined) {
    parameter.beginTime = parameter.beginTime.format('YYYY-MM-DD')
  }
  if (parameter.endTime != undefined) {
    parameter.endTime = parameter.endTime.format('YYYY-MM-DD')
  }
  return axios({
    url: '/mqpay/trade/selectPage',
    method: 'post',
    params: parameter
  })
}

export function doNotice (outTradeNo) {
  const parameter = {}
  if (outTradeNo != undefined) {
    parameter.outTradeNo = outTradeNo
  }
  return axios({
    url: '/mqpay/trade/doNotice',
    method: 'post',
    params: parameter
  })
}